package com.wtwd.device;

import com.wtwd.device.properties.MqProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(MqProperties.class)
public class CommonConfiguration {

    @Primary
    @Bean
    public MqProperties getMqMqProperties(){
        return new MqProperties();
    }

}
